<html>
<head><meta charset="utf-8"><title>AnalysisHost::type_of · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/AnalysisHost.3A.3Atype_of.html">AnalysisHost::type_of</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="189130706"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/AnalysisHost%3A%3Atype_of/near/189130706" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Edwin Cheng <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/AnalysisHost.3A.3Atype_of.html#189130706">(Feb 26 2020 at 16:29)</a>:</h4>
<p>Seem like <a href="https://github.com/rust-analyzer/rust-analyzer/blob/6ea633c4940d25acea04e4945a8f905e65153c30/crates/ra_ide/src/lib.rs#L457" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/blob/6ea633c4940d25acea04e4945a8f905e65153c30/crates/ra_ide/src/lib.rs#L457"><code>AnalysisHost::type_of</code></a> do not use in <code>rust_analyzer</code> crate, do anyone know where it is used ?</p>



<a name="189130855"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/AnalysisHost%3A%3Atype_of/near/189130855" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/AnalysisHost.3A.3Atype_of.html#189130855">(Feb 26 2020 at 16:30)</a>:</h4>
<p>I think the original idea was to provie a custom vscode command for this</p>



<a name="189130891"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/AnalysisHost%3A%3Atype_of/near/189130891" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/AnalysisHost.3A.3Atype_of.html#189130891">(Feb 26 2020 at 16:30)</a>:</h4>
<p>I guess it's somewhat subsume by hover now?</p>



<a name="189131297"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/AnalysisHost%3A%3Atype_of/near/189131297" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Edwin Cheng <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/AnalysisHost.3A.3Atype_of.html#189131297">(Feb 26 2020 at 16:34)</a>:</h4>
<p>It do not support macro-expanded file  but <code>SourceAnalyzer::type_of</code>do support. If it is not used, I will remove it and use SA one instead.</p>



<a name="189131359"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/AnalysisHost%3A%3Atype_of/near/189131359" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/AnalysisHost.3A.3Atype_of.html#189131359">(Feb 26 2020 at 16:34)</a>:</h4>
<p>sgtm!</p>



<a name="189159677"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/AnalysisHost%3A%3Atype_of/near/189159677" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/AnalysisHost.3A.3Atype_of.html#189159677">(Feb 26 2020 at 21:13)</a>:</h4>
<p>(deleted)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>